package com.easy.mapper;

import com.easy.bean.Staff;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StaffDao {
    int add(@Param("param") Staff staff);
    int del(@Param("id")Integer id);
    int edit(@Param("param")Staff staff);
    Staff one(@Param("id")Integer id);
    List< Staff> all(@Param("param")Staff staff);

    int pageCount(@Param("param")Staff staff);
    List< Staff> page(@Param("page") Page page, @Param("param")Staff staff);


    Staff getByPhone(@Param("phone") String  phone);

    Staff getByEmail(@Param("email") String  email);
}
